package com.jxau.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;

import java.util.ArrayList;
import java.util.Date;

public class Article {
    private Integer id;
    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy/MM/dd HH:mm:ss ",timezone = "GMT+8")
    private Date date;



    /**
     * 访客数量
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer view;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer commentNum;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer likeNum;
    /**
     * 用户
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private User user;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private ArrayList<Comment> comments;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer isLike;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Integer isCollect;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private String authorId;
    private Integer top;

    public Integer getTop() {
        return top;
    }

    public void setTop(Integer top) {
        this.top = top;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Integer getView() {
        return view;
    }

    public void setView(Integer view) {
        this.view = view;
    }

    public Integer getCommentNum() {
        return commentNum;
    }

    public void setCommentNum(Integer commentNum) {
        this.commentNum = commentNum;
    }

    public Integer getLikeNum() {
        return likeNum;
    }

    public void setLikeNum(Integer likeNum) {
        this.likeNum = likeNum;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public ArrayList<Comment> getComments() {
        return comments;
    }

    public void setComments(ArrayList<Comment> comments) {
        this.comments = comments;
    }

    public Integer getIsLike() {
        return isLike;
    }

    public void setIsLike(Integer isLike) {
        this.isLike = isLike;
    }

    public Integer getIsCollect() {
        return isCollect;
    }

    public void setIsCollect(Integer isCollect) {
        this.isCollect = isCollect;
    }

    public String getAuthorId() {
        return authorId;
    }

    public void setAuthorId(String authorId) {
        this.authorId = authorId;
    }
}
